import sys
from tkinter import Tk
from Client import Client

if __name__ == "__main__":
	try:
		serverAddr = "localhost"
		serverPort = int(9000)
		rtpPort = int(9001)
		fileName = "video.mjpeg"
	except:
		print("[Usage: ClientLauncher.py Server_name Server_port RTP_port Video_file]\n")

	root = Tk()

	# Create a new client
	#app = Client(root, serverAddr, serverPort, rtpPort, fileName)
	app = Client(root, serverAddr, serverPort, rtpPort, fileName)
	#app.master.title("RTPClient")
	app.master.title("RTPClient")
	root.mainloop()
